package com.jack.lib.base

import android.content.Context
import android.content.res.Configuration
import android.content.res.Resources
import android.os.Bundle

/**
 * author : chong.huang
 * create : 2022/3/28
 * desc   :
 */
interface IAttributesInterceptor {

    fun getResources(resources: Resources): Resources = resources

    fun attachBaseContext(newBase: Context): Context = newBase

    fun onConfigurationChanged(newConfig: Configuration): Configuration = newConfig

    fun onSaveInstanceState(outState: Bundle): Bundle = outState

    fun onRestoreInstanceState(savedInstanceState: Bundle): Bundle = savedInstanceState
}